package org.jeecg.modules.demo.pusettlement.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.pusettlement.entity.PuSettlement;
import org.jeecg.modules.demo.pusettlement.entity.PuSettlementVo;

import java.util.List;
import java.util.Map;

/**
 * @Description: 采购结算
 * @Author: jeecg-boot
 * @Date:   2021-12-06
 * @Version: V1.0
 */
public interface IPuSettlementService extends IService<PuSettlement> {

    public String getMaxCode();
    public List<String> selectByRkOrder(String number);
    public Page<PuSettlementVo> getList(Page<PuSettlementVo> page, PuSettlement puSettlement);
    public boolean addPuSettlement(PuSettlement puSettlement);
    public boolean editPuSettlement(PuSettlement puSettlement);
    public List<PuSettlement> getListByPoOrder(String str);
    public List<PuSettlement>  getYjByOrder(String str,Page<PuSettlement> page);
    public boolean addHPuSettlement(PuSettlementVo puSettlementVo,String str);
    public boolean deletePuSettlement(PuSettlement puSettlement);
    public PuSettlement getByPusNo(String str);
    public Double getTotailByNumber(PuSettlement puSettlement);

    public  List<PuSettlement> queryCaigouqushi();
    public Map<String,Double> getYkTotailByOrder(String str);

    public boolean checkSettlement(PuSettlement puSettlement);

    public boolean waiveChecKSettlement(PuSettlement puSettlement);

    public List<PuSettlement> getWriteOffDetails(PuSettlement puSettlement);
}
